<template>
  <div class="box2">
    <el-form
      :model="ruleForm"
      :rules="rules"
      :inline="false"
      ref="ruleForm"
      label-width="240px"
      class="demo-ruleForm"
      size="medium"
    >
      <div class="must">
        <el-form-item label=" 商标申请号：" prop="loginNum">
          <el-input v-model="ruleForm.loginNum" placeholder="请填写"></el-input>
          <div class="inform">
            <img src="../../assets/imgs/inform.png" alt="通知" />
            <div class="content">
              <span>示例：2515783543</span>
            </div>
          </div>
        </el-form-item>
        <el-form-item label="商标类别：" prop="addModel">
          <el-input class="type-number" v-model="ruleForm.addModel" placeholder="请填写类别（1-45之间）"></el-input>
          <div class="informm" style="margin-left:-45%">
            <img src="../../assets/imgs/inform.png" alt="通知" />
            <div class="content">
              <span>以实际商标证书上类别为准</span>
            </div>
          </div>
        </el-form-item>
        <el-form-item label="注销商品/服务项目（分类填写）：" prop="cancellationCommodity">
          <el-input type="textarea" v-model="ruleForm.cancellationCommodity" style="width:80%" :rules = "{required:true,validator:RegVerify,trigger:'change'}"></el-input>
          <div class="inform">
            <img src="../../assets/imgs/inform.png" alt="通知" />
            <div class="content">
              <span>提示：商品服务项目间用分号 ; 隔开</span>
            </div>
          </div>
        </el-form-item>
        <el-form-item label="是否共有商标" prop="radio">
            <el-radio class="input" v-model="ruleForm.radio"  @change="radioAnniu" :label="1">是</el-radio>
            <el-radio class="input" v-model="ruleForm.radio"  :label="0">否</el-radio>
        </el-form-item>
        <div v-if="ruleForm.radio == 1" class="common">
          <el-form-item label="其他共有人：" >
              <both :callback="getBoth" :append="$store.state.alterData.append" style="width:80%" :class_id="$route.query.id"></both>
          </el-form-item>
        </div>
        <div class="line"></div>
        <el-form-item class="upload"  label="网上确认书：" prop="afterAmount">
          <span id="star">*</span>
          <div class="wangshang">
            <upfile :callback="setSure" >
              <img :src="old_imgs['qrfile']" style="width:148px;height:148px;margin-bottom:10px" v-if="ruleForm.qrfiles_status==2" />
            </upfile>
            <div class="exam-img">
              <div class="img-inform">
                <img src="../../assets/imgs/inform.png">
                <span>示例:</span>
              </div>
              <examimg :imgType="7"></examimg>
            </div>
          </div>
          <div>
            <span class="informs">
              请点此
              <a :href="mconfig.host + '/file/download?fileType=4'"
                >下载网上确认书</a
              >,查到相应商标编号并填充
            </span>
            <br />
            <span class="notice"
              >请将下载的网上确认书填写完成, 然后上传JPG文件或是PNG文件</span
            >
          </div>
        </el-form-item>

        <el-form-item label="其他附件：" prop="dengjichenluofile">
          <uploads :callback="backUrl" :delUrl="delUrl" :file_config="{field:'dengjichenluofile'}" :list="ruleForm.dengjichenluofile"></uploads>
          <div class="inform">
            <img src="../../assets/imgs/inform.png" alt="通知" />
            <div class="content">
              <span>提示：其他附件</span>
            </div>
          </div>
        </el-form-item>

        <el-form-item>
          <div class="btns">
            <el-button type="primary" @click="outStep">上一步</el-button>
            <el-button type="primary" @click="submitCheck('ruleForm')">提交并审核</el-button>
          </div>
        </el-form-item>
        <el-dialog
          class="dialog"
          :show-close="false"
          :center="true"
          :visible.sync="dialogVisible"
          width="460px"
          :before-close="handleClose"
        >
          <div class="hint">
            <img src="../../assets/imgs/branch.png" alt="提示图片" />
            <span>选择您想去办理的网点</span>
          </div>
          <el-form-item label="选择网点：" prop="value">
            <el-select  v-model="ruleForm.branchNetworkId" placeholder="请选择">
              <el-option
                v-for="item in options"
                :key="item.deptId"
                :label="item.deptName"
                :value="item.deptId"
              >
                <span style="float: left">{{ item.deptName }}</span>
                <span style="float: right; color: #8492a6; font-size: 13px">{{ item.address }}</span>
              </el-option>
            </el-select>
          </el-form-item>
          <div slot="footer" class="dialog-footer">
            <el-button type="info" @click="dialogVisible = false">取 消</el-button>
            <el-button type="primary" @click="submitForm('ruleForm')">确 定</el-button>
          </div>
        </el-dialog>
        <el-dialog
          class="hintMsg"
          :show-close="false"
          title="温馨提示"
          :visible.sync="centerDialogVisible"
          @click="skip"
          width="462px"
        >
          <span>您的信息已提交，工作人员将在3-5日内对你的信息审核，审核通过后即可预约业务，审核结果将通过短信的方式发送给你。</span>
          <span slot="footer" class="dialog-footer">
            <el-button type="primary" @click="skip">确 定</el-button>
          </span>
        </el-dialog>
      </div>
    </el-form>
  </div>
</template>
<script>
import upfile from "../common/upfile.vue";
import both from "../common/both.vue";
import examimg from "../common/imgExample";
import uploads from "../common/uploads";

export default {
  name: "BashStepForm19",
  data() {
    return {
      showImg: false,
      uploadImg: false,
      stairmodel: [], //类别
      secondmodel: [],
      creditCheckFlg: [],
      //网点列表
      options: [],
      //提交成功弹出框变量
      centerDialogVisible: false,
      //网点弹出框控制变量
      dialogVisible: false,
      //提交表单
      formData: new FormData(),
      //表单唯一id
      classId: "",
      //共有人模板
      common: [],
      //共有人模板
      commonModel:{
        name: "名称(中文)：",
        englishName: "(英文)：",
        site: "地址(中文)：",
        englishSite: "(英文)：",
        value: "",   // 中文名称
        englishValue: "",   // 英文名称
        siteValue: "",   // 中文地址
        englishSiteValue: "",  // 英文地址
      },
      // 实际模板
      modelcommon:{
        partNameCh: "",
        partNameEn: "",
        partAddrCh: "",
        partAddrEn: "",
      },
      commonData:[],
      //填写的信息
      ruleForm: {
        // Linkman: "",
        // organization: "",
        cancellationCommodity: "", //未提交分类填写
        loginNum: "",
        radio: 0,
        nameValue: "",
        englishValue: "",
        siteValue: "",
        englishSiteValue: "",
        branchNetworkId:'',//网站编号
        qrfiles_status:'',//网上确认书验证字段
        againRadio: "",
        originNum: "",
        deleteProjrct: [],
        dengjichenluofile:[],
        value: "",
        addModel: "",
        commonArr: [],
          ziliaofiles:[]
      },
      rules: {
        // Linkman: [
        //   { required: true, message: "选项不能为空", trigger: "blur" },
        //   {
        //     pattern: /^[\u4E00-\u9FA5]{2,5}$/,
        //     message: "请输入正确的中文名称",
        //     trigger: "blur",
        //   },
        // ],
        // organization: [
        //   { required: true, message: "选项不能为空", trigger: "change" },
        // ],
        addModel:[
          {
              required: true,
              message: "请输入商标类别",
              trigger: "blur",
          },
          {
              pattern: /^\d{0,2}$/,
              message: "请输入正确的商标类别",
              trigger: "blur",
          }
        ],
        // dengjichenluofile: [
        //   { required: true, message: "附件不能为空", trigger: "change" },
        // ],
        loginNum: [
          {
              required: true,
              message: "请输入商标申请号",
              trigger: "blur",
          },
          {
              pattern: /^[A-Za-z0-9]{0,30}$/,
              message: "请输入正确的商标申请号",
              trigger: "blur",
          },
        ],
        cancellationCommodity:[
          { required: true, message: "注销商品/服务项目不能为空", trigger: "blur" },
          {
              pattern: /^.{2,}$/,
              message: "您输入长度不符合要求",
              trigger: "blur",
          },
        ],
        radio: [{ required: true, message: "选项不能为空", trigger: "change" }],
        nameValue: [
          { required: true, message: "选项不能为空", trigger: "change" },
        ],
        englishValue: [
          { required: true, message: "选项不能为空", trigger: "change" },
        ],
        siteValue: [
          { required: true, message: "选项不能为空", trigger: "change" },
        ],
        englishSiteValue: [
          { required: true, message: "选项不能为空", trigger: "change" },
        ],
        againRadio: [
          { required: true, message: "选项不能为空", trigger: "change" },
        ],
        type: [{ required: true, message: "选项不能为空", trigger: "change" }],
        originNum: [
          { required: true, message: "选项不能为空", trigger: "change" },
        ],
        // deleteProjrct: [
        //   { required: true, message: "选项不能为空", trigger: "change" },
        // ],

        // value: [{ required: true, message: "选项不能为空", trigger: "change" }],
      },
      old_imgs: {},
    };
  },
  mounted() {
    //获取商标一级分类
    this.$http.get("/trademark/tradeCategory/p").then((res) => {
      this.stairmodel = res.data.data;
    });
    //获取从存储在路由中的classId
    this.classId = this.$route.query.id;
    //获取网点列表
    this.$http.get("/trademark/system/dept/findDept").then((res) => {
      this.options = res.data.data;
    });
    // this.ruleForm.commonArr = this.$store.state.alterData.append;
    if (this.$store.state.alterData.public) {
      let formDa = {};
      Object.assign(
        formDa,
        this.$store.state.alterData.data,
        this.$store.state.alterData.public
      );
      //   修改时数据的填充
      let {
        // ageName,
        branchNetworkId,
        // contacts,
        deleteProjrct,
        otherfile,
        isShare,
        trademarkNum,
        creditCheckFlg, //商品/服务项目（分类填写）
        model,
        qrfile,
        // cancellationCommodity,
      } = formDa;
      // this.ruleForm.organization = ageName;
      this.ruleForm.cancellationCommodity = JSON.parse(deleteProjrct);
      this.ruleForm.branchNetworkId = Number(branchNetworkId);
      // this.ruleForm.Linkman = contacts;
      // this.ruleForm.deleteProjrct = JSON.parse(deleteProjrct);
//      this.$set( this.ruleForm,"radio",1)
      this.ruleForm.radio = parseInt(isShare);
      this.creditCheckFlg = JSON.parse(deleteProjrct);
      // console.log(this.creditCheckFlg);
      this.ruleForm.loginNum = trademarkNum;
      this.ruleForm["dengjichenluofile"] = JSON.parse(otherfile);
      this.ruleForm.addModel = model;
      this.uploadImg = true
//      console.log(typeof JSON.parse(deleteProjrct)[0],465456)
      if (qrfile) {
        this.old_imgs.qrfile = this.mconfig.host + qrfile;
      }
      this.ruleForm.qrfiles_status="2"
      //回显共有人append
      if (this.$store.state.alterData.append) {
        this.$store.state.alterData.append.forEach((item) => {
          let objCommom = JSON.parse(JSON.stringify(this.modelcommon));
          this.ruleForm.commonArr.push(objCommom);
          let objValue = JSON.parse(JSON.stringify(this.commonModel));
          objValue.value = item.partNameCh;
          objValue.englishValue = item.partNameEn;
          objValue.siteValue = item.partAddrCh;
          objValue.englishSiteValue = item.partAddrEn;
          this.common.push(objValue);
        });
      }
    }
  },
  watch: {
    // "ruleForm.addModel"(newsval, oldval) {
    //   if (newsval != oldval) {
    //     this.$http.get(`trademark/tradeCategory/s/${newsval}`).then((res) => {
    //       //console.log(res);
    //       this.secondmodel = res.data.data;
    //       if(this.$store.state.stateJdg){
    //         for(let i = 0; i < this.ruleForm.cancellationCommodity.length; i++){
    //           for(let j = 0; j < this.secondmodel.length; j++){
    //             if(this.ruleForm.cancellationCommodity[i] == this.secondmodel[j].id){
    //               this.$set(this.ruleForm.cancellationCommodity, i, this.secondmodel[j].category)
    //             }
    //           }
    //         }
    //         this.creditCheckFlg = this.ruleForm.cancellationCommodity
    //       }
    //     });
    //   }
    // },
    // creditCheckFlg(val){
    //   if(this.creditCheckFlg=[]){
    //     this.creditCheckFlg = val
    //   }
    // },
    //通过数据监听的方式将共有人模板中的信息同步到ruleForm.commonArr中
    common: {
      handler(newName, oldName) {
        this.common.forEach((item, index) => {
          this.ruleForm.commonArr[index].partNameCh = item.value;
          this.ruleForm.commonArr[index].partNameEn = item.englishValue;
          this.ruleForm.commonArr[index].partAddrCh = item.siteValue;
          this.ruleForm.commonArr[index].partAddrEn = item.englishSiteValue;
        });
      },
      deep: true,
    },
    //  监听判断是否执行新增变更人
    // "ruleForm.radio":function(val){
    //   console.log(val);
    //     if(val == 1){
    //       if(this.ruleForm.commonArr.length == 0 || this.$store.state.stateJdg==false){
    //         this.plus()
    //       }
    //     }else{ this.ruleForm.commonArr == [] }
    // },
  },
  components: { upfile,both,uploads,examimg},
  methods: {
    backUrl(url,file_config){
        this.ruleForm[file_config["field"]].push(url)
    },
    delUrl(index,file_config){
        this.ruleForm[file_config["field"]].splice(index,1)
        this.$set(this.ruleForm,file_config["field"],this.ruleForm[file_config["field"]])
    },
    // 提交并审核验证
    getBoth(value){
        console.log(value,145645)
        this.commonData = value;
    },
    RegVerify(value){
      if(value.replace(/(^\s+)|(\s+$)/g)){
        this.ruleForm.cancellationCommodity=value.replace(/(^\s+)|(\s+$)/g,"");
      }
    },
    //确认书
    submitCheck(formName) {
      // 判断删减商品/服务项目是否选择
      // if(this.ruleForm.addModel != ""){
      //   if(this.ruleForm.deleteProjrct.length > 0 ){
      //     this.serveCheck = true
      //   }else{
      //     console.log(this.creditCheckFlg)
      //     this.open1("请选择删减商品/服务项目", "error")
      //     return
      //   }
      // }
      if(this.ruleForm.radio==1){
        if (this.commonData.length == 0) { //没填共有人
          this.open1("请填写共有人信息！", "error");
          return;
        }
      }
      

      this.$refs[formName].validate((valid) => {
        if (valid && this.uploadImg == true) {
          this.dialogVisible = true;
          // if(this.ruleForm.radio==1){
          //   this.ruleForm.commonArr.forEach((item) =>{
          //     if(item.partAddrCh == '' || item.partNameCh == ''){
          //       this.open1("共有人名称(中文)或共有人地址(中文)不能为空", "error");
          //       this.dialogVisible = false;
          //     }else{
          //       this.dialogVisible = true;
          //     }
          //   })
          // }else{
          //   this.dialogVisible = true;
          // }
        } else if (this.uploadImg == false) {
          this.open1("请上传网上确认书", "error");
        } else {
            this.open1("请完整填写表单数据", "error");
        }

      });
    },
    // 上传网上确认书
    setSure(files) {
      if(files.length>0){
          this.ruleForm.qrfiles_status="1"
         
        }else {
          this.ruleForm.qrfiles_status=""
      }

      this.ruleForm.qrfile=files[0]
      // let old = JSON.parse(JSON.stringify(this.old_imgs));
      // this.old_imgs = {};
      // delete old["qrfile"];
      // this.old_imgs = old;
      if(this.ruleForm.qrfile){
        this.uploadImg = true
      }else{
        this.uploadImg = false
      }
      this.showImg = false
    },
    //类别
    // handleCheckedCitiesChange(value) {
    //   let arr = [];
    //   this.secondmodel.forEach((item) => {
    //     value.forEach((i) => {
    //       if (item.category == i) {
    //         arr.push(item.category);
    //       }
    //     });
    //   });
    //   console.log(arr);
    //   this.ruleForm.deleteProjrct = arr;
    // },
    //返回上一步
    outStep() {
      this.$emit("wp", 1, "请填写申请业务信息");
    },
    //提示模板
    open1(msg, types = "success") {
      this.$message({
        message: msg,
        type: types,
      });
    },
    //弹出框的选项确认框
    handleClose(done) {
      this.$confirm("确认关闭？")
        .then((_) => {
          done();
        })
        .catch((_) => {});
    },
    //表单提交事件
    submitForm(formName) {
      let _this = this;
        if (this.ruleForm.branchNetworkId != "") {
          //每次提交重新生成新的FormData用于储存新的数据
         this.formData = new FormData();
          this.dialogVisible = false;
          /*********************************************公共数据开始*********************************************/
          let arr=this.$store.getters.getRuleForm
          for(let key in arr){
            this.formData.append(key,arr[key])
          }
          

          /*********************************************公共数据结束*********************************************/

          /*********************************************需要提交的数据开始***************************************/

          //我的
          this.formData.append("appliType", Number(this.$store.state.type)); //  申请人类型
          this.formData.append("branchNetworkId", this.ruleForm.branchNetworkId);
          // this.formData.append("contacts", this.ruleForm.Linkman); //   联系人
          if (this.$store.state.stateJdg) {
            //   传入molid  修改时
            this.formData.append(
              "modelId",
              this.$store.state.alterData.public.modelId
            );
          }
          // this.formData.append(
          //   "deleteProjrct",
          //   JSON.stringify(this.ruleForm.deleteProjrct)
          // ); //   删减商品/服务项目(分类填写)
          this.formData.append("isShare", Number(this.ruleForm.radio)); //  是否共有商标
          this.formData.append("classId", this.classId);
          this.formData.append("otherfile", JSON.stringify(this.ruleForm.dengjichenluofile));
          // this.formData.append("ageName", this.ruleForm.organization);
          this.formData.append(
            //  共有人
            "proAppends",
            JSON.stringify(this.commonData)
          );
          // this.formData.append(
          //   "qrfiles",
          //   this.old_imgs.qrfile ? {} : this.ruleForm.qrfile
          // ); //  商网上确认书
          if (this.old_imgs["qrfile"]) {
            this.formData.append("qrfiles", {});
          } else {
            this.formData.append("qrfiles", this.ruleForm.qrfile);
          }
          this.formData.append("trademarkNum", this.ruleForm.loginNum); //  商标申请号
          this.formData.append("model", this.ruleForm.addModel); //  服务类别

          // if(this.$store.state.stateJdg){
          //   for(let i = 0; i < this.ruleForm.cancellationCommodity.length; i++){
          //     for(let j = 0; j < this.secondmodel.length; j++){
          //       if(this.ruleForm.cancellationCommodity[i] == this.secondmodel[j].category){
          //         this.ruleForm.cancellationCommodity[i] = this.secondmodel[j].id
          //       }
          //     }
          //   }
          // }
          this.formData.append(
            "deleteProjrct",
            JSON.stringify(this.ruleForm.cancellationCommodity)
          );

          // 新增和修改的接口
          let urls = "";
          if (this.$store.state.alterData.public) {
            this.formData.append("id", this.$store.state.alterData.public.id);
            urls = "trademark/deleteApplicant/modifyNoCommit";
          } else {
            urls = "trademark/deleteApplicant/firstSubmit";
          }
          //配置请求头
          var config = {
            header: {
              "Content-Type": "multipart/form-data",
            },
          };
          this.$http
            .post(urls, this.formData, config)
            .then(function (response) {
              console.log(response);
              //若状态码不为200则不跳转v bvb vvccvb vbvbcgvbc
              if (response.data.code != 200) {
                _this.open1("提交失败", "error");
                return;
              }
              //提交成功
              _this.centerDialogVisible = true;
              this.$store.commit("storeDatas", {});
              this.$store.commit("setPicType", 0);
              this.$store.commit("setCompanyCardInfo", {});
              this.$store.commit("setIdCardInfo", {});
            })
            .catch(function (error) {
              //////console.log(error);
            });
        } else {
          this.open1("请选择网点编号", "error")
          return false;
        }

    },
    //跳转函数
    skip() {
      this.centerDialogVisible = false;
      this.open1("操作成功");
      this.$router.push({
        path: "/business/myBusiness/auditing",
      });
    },
    //点击添加更变许可人
    plus() {
      let objCommom = JSON.parse(JSON.stringify(this.modelcommon));
      this.ruleForm.commonArr.push(objCommom);
      let objValue = JSON.parse(JSON.stringify(this.commonModel));
      this.common.push(objValue);
    },
    dele() {
      this.common.pop();
      this.ruleForm.commonArr.pop();
      if (this.common.length == 0) {
        this.ruleForm.radio = 0;
      }
    },
    radioAnniu() {
      console.log(this.common.length);
      if (this.ruleForm.radio == 1) {
        if (this.common.length == 0) {
          this.plus();
          return
        }
      }
    },
    // commonClear(){
    //     if(this.ruleForm.radio == 0){
    //         this.dele();
    //     }
    // }
  },
};
</script>
<style lang="less" scoped>
.btns {
  display: flex;
  justify-content: center;
  .el-button {
    margin: 0 20px;
  }
}
.box2 {
  display: flex;
  flex-direction: column;
  align-items: center;
  // margin-top: 100px;
  width: 100%;
  min-height: 800px;
  padding-right: 280px;
  .tle {
    font-size: 24px;
    color: #000;
  }
  .el-form {
    width: 100%;
    .el-input {
      width: 80%;
    }
  }
  .must,
  .select {
    display: flex;
    position: relative;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px 0 30px;
    margin-bottom: 80px;
    width: 100%;
    // border: 1px solid #bbbbbb;
    border-radius: 10px;
    .el-form-item {
      width: 680px;
    }
    .inline {
      display: flex;
      .el-form-item {
        margin: 0;
        width: 290px !important;
      }
    }
  }
  .must {
    margin-bottom: 20px;
  }
  .line {
    width: calc(100% - 280px);
    margin: 10px auto;
    height: 1px;
    border-top: 1px dashed #d9d9d9;
  }
  .imgHint {
    margin: 5px;
    font-size: 12px;
    line-height: 17px;
    color: #F96900;
  }
  .affirm {
    font-size: 12px;
    color: #a0a3a5;
    a {
      text-decoration: none;
      color: #3685ff;
    }
  }
  // .input {
  //   width: 190px;
  // }
  .upload {
    margin: 20px 0;
  }
  .type-number {
    width: 250px;
  }
  .informs {
    position: absolute;
    width: 500px;
    font-size: 12px;
    color: #a0a3a5;
    a {
      text-decoration: none;
      color: #3685ff;
    }
  }
  .notice {
    color: #F96900;
    font-size: 12px;
  }
  .inform {
    display: flex;
    align-items: center;
    position: absolute;
    top: 0;
    left: 80%;
    width: 300px;
    height: 32px;
    color: #F96900;
    font-size: 10px;
    line-height: 14px;
    img {
      margin: 11px;
    }
    .content {
      display: flex;
      flex-direction: column;
      .ts {
        text-indent: 3em;
      }
    }
  }
  .tle {
    list-style: none;
    margin: 40px 0 20px;
    font-size: 24px;
    & ~ .tle {
      color: #bbb;
    }
  }
  .hint {
    color: #F96900;
    background-color: #fff;
    .el-form-item__label {
      width: 150px;
    }
    img {
      width: 20px;
    }
  }
  .el-steps {
    width: 70%;
    height: 200px;
  }
  .el-button {
    //display: block;
    display: inline;
    margin: 0 20px;
    // background-color: #67c23a !important;
    // border-color: #67c23a !important;
  }

  .common .el-button {
    background-color: #fff !important;
    border-color: #bbb !important;
  }
}
.dialog-footer {
  display: flex;
  justify-content: space-between;
  color: #fff;
  .lan {
    background-color: #2c9dfc !important;
    border-color: #2c9dfc !important;
  }
}

.dialog /deep/.el-form-item__label {
  width: 100px !important;
}
.dialog /deep/.el-form-item__content {
  // border: 1px solid red;
  display: flex;
  justify-content: left;
  margin-left: 100px !important;
   display: flex;
  justify-content: left;
}
.dialog /deep/.el-input {
  width: 250px;
}
.el-checkbox-group {
  line-height: 14px;
}
// .is-checked/deep/.el-radio__inner,
// .is-checked/deep/.el-checkbox__inner {
//   border-color: #999999;
//   background: #999999;
// }
.el-radio/deep/.el-radio__inner:hover {
  border-color: #999999 !important;
}
.is-checked/deep/.el-radio__label,
.is-checked/deep/.el-checkbox__label {
  color: #333;
}
.is-focus .el-checkbox__inner {
  border-color: #999999 !important;
}
.el-checkbox/deep/.el-checkbox__inner:hover {
  border-color: #999999 !important;
}
.el-step__head.is-process {
  border-color: #f96900;
  color: #f96900 !important;
}
.hintMsg {
  /deep/.el-dialog__header {
    display: flex;
    justify-content: center;
    font-weight: bold;
  }
  .dialog-footer {
    justify-content: center;
    .el-button {
      border-color: #2c9dfc !important;
      background: #2c9dfc !important;
    }
  }
}
/deep/ .el-dialog.el-dialog--center /deep/ {
    .el-dialog__header {
        padding: 0;
    }
  
    .el-dialog__body {
        padding: 20px 20px 50px;
    }

    .hint {
        color: #F96900;
        background-color: #fff;
        padding: 0;
        padding-bottom: 20px;
    }

    .el-button {
        margin: 0;
    }

    .el-form-item__label {
        width: 86px !important;
    }
}
#star{
  position: absolute;
  color: red;
  margin-left: -105px;
}

.informm {
  display: flex;
  align-items: center;
  position: absolute;
  top: 0;
  left: 125%;
  width: 250px;
  height: 32px;
  color: #F96900;
  font-size: 10px;
  line-height: 14px;
  margin-left: -20%;

  img {
    margin: 11px;
  }

  .content {
    display: flex;
    flex-direction: column;
    position: relative;

    .ts {
      text-indent: 3em;
    }
  }

}
.exam-img{
  position: absolute;
  top: 0;
  left: 435px;
}
.img-inform{
  img{
    position: absolute;
    top: 50%;
    left: 50%;
    margin-left: -140px;
    transform: translate(-50%,-50%);
  }
  span{
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%,-50%);
      white-space: nowrap;
      margin-left: -100px;
      width: 50px;
      color: #f96900;
  }
}
  .wangshang{
    display: flex;
    width: 521px;
    justify-content: space-between;
  }
</style>